package com.gxkj.qiao.services.impl;

import com.gxkj.common.exceptions.ValidateException;
import com.gxkj.qiao.daos.MessageDaoImpl;
import com.gxkj.qiao.entitys.Message;
import com.gxkj.qiao.services.MessageService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class MessageServiceImpl implements MessageService {


    Logger LOG = LoggerFactory.getLogger(MessageServiceImpl.class);

    @Autowired
    private MessageDaoImpl messageDao;


    public void doAddMsg(Message entity) throws ValidateException {
        messageDao.insert(entity);
    }
}
